]> dgit.raspbian.org Git - gnome-shell.git/commit
panel: Only update appMenu icon when the app actually changed
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 1 Mar 2021 09:07:27 +0000 (10:07 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 9 Mar 2021 13:15:09 +0000 (13:15 +0000)
commit5de9166f7a2c0bc8e3347492bb33dac894bb0323
treedb9c4a9224e3d29fbe0c7535cb8729be9327cfeb
parente6c1db2bc80773362a00291155eda3e65f898439
panel: Only update appMenu icon when the app actually changed

Right now we always recreate the icon of the appMenu when calling
_sync(). This will relayout the panel everytime we open the overview,
because we call _sync() in that case.

We can easily avoid that by only recreating the icon actor in case the
app that's opened actually changes. This gets us close to doing no more
relayouts of the panel when opening the overview.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1733>
js/ui/panel.js